// 获取本地图片资源url
export const requireImgUrl = (path: string, name: string) => {
    console.log(`../../assets/${path}/${name}.png`);

    return new URL(`../../assets/${path}/${name}.png`, import.meta.url).href
}

export const requireFuckImageGIF = (path: string, name: string, type: string) => {
    return new URL(`../../assets/${path}/${name}.${type}`, import.meta.url).href
}